/* eslint-disable */
export default {
  data() {
    return {
      dealState: false,
      dialogVisible: false,
      assetData: [
        {
          contractNo: '0001201911025861',
          assetName: 'xxx项目1',
          assetType: '服务业',
          assetLevel: '市级',
          problem: "xxx问题，导致现在无法进行",
          startTime: '2020.3.1',
          endTime: '2022.3.1',
          construction: 'xxx公司',
        },
        {
          contractNo: '0001201911025031',
          assetName: 'xxx项目2',
          assetType: '科技创新',
          assetLevel: '市级',
          startTime: '2020.2.1',
          problem: "xxx问题，导致现在无法进行",
          endTime: '2023.1.1',
          construction: 'xxx公司',
        },
        {
          contractNo: '0001201911025031',
          assetName: 'xxx项目3',
          assetType: '服务业',
          assetLevel: '市级',
          startTime: '2020.7.1',
          endTime: '2022.7.1',
          construction: 'xxx公司',
          problem: "xxx问题，导致现在无法进行",
        },
        {
          contractNo: '0001201911024234',
          assetName: 'xxx项目4',
          assetType: '制造业',
          assetLevel: '市级',
          startTime: '2020.5.1',
          endTime: '2022.5.1',
          construction: 'xxx公司',
          problem: "xxx问题，导致现在无法进行",
        },
        {
          contractNo: '0001201911024234',
          assetName: 'xxx项目5',
          assetType: '服务业',
          assetLevel: '市级',
          startTime: '2019.4.1',
          endTime: '2022.4.1',
          construction: 'xxx公司',
          problem: "xxx问题，导致现在无法进行",
        },
        {
          contractNo: '0001201911027165',
          assetName: 'xxx项目6',
          assetType: '科技创新',
          assetLevel: '市级',
          startTime: '2021.1.1',
          endTime: '2022.6.1',
          construction: 'xxx公司',
          problem: "xxx问题，导致现在无法进行",
        },
      ],
      type: 1,
      planInfo: {
        reason: "",
        username: "huhuhuhr",
        selectedPlanName: "",
        selectedPlanId: "",
        time:""
      },
      planList: [
        {
          label: "龙华路智谷北区一期",
          value: "1",
        },
        {
          label: "龙华路智谷北区二期",
          value: "2",
        },
        {
          label: "龙华路智谷北区三期",
          value: "3",
        }
      ],
      dealPlanList: [
        {
          dealNo: 1115656165,
          createTime: "2018-02-01 11:08",
          planDeal: "龙华智谷北区一期项目"
        },
        {
          dealNo: 1115656135,
          createTime: "2018-02-01 11:08",
          planDeal: "龙华智谷北区二期项目"
        }
      ],
      // 新增资产弹窗
      dialogAssetAdd: {
        title: '计划详情',
        status: false,
      },
      dialogAssetAdd1: {
        title: '逾期节点计划详情',
        status: false,
      },
      dialogAssetAdd2: {
        title: '逾期节点计划详情',
        status: false,
      },
      detail: {
        number: 1,
        date: "2018-01-11",
        planName: "龙华智谷北区一期"
      },
      yqDetailList: [
        {
          dataOld: "2018-01-11",
          dateNew: "2018-02-11",
          planName: "龙华智谷北区一期"
        },
        {
          dataOld: "2018-01-11",
          dateNew: "2018-02-11",
          planName: "龙华智谷北区二期"
        }
      ],
      yqDetail: {
        dataOld: "2018-01-11",
        dateNew: "2018-02-11",
        planName: "龙华智谷北区一期"
      },
      flag: false
    }
  },
  created() {
    this.type = 1
  },
  mounted() {
    this.type = 1
  },
  methods: {
    dealInfo() {
      this.type = 0;
      this.flag = true;
      this.dialogAssetAdd1.status = false;
    },
    uploadInfoUp() {
      this.type = 0;
      this.dialogAssetAdd1.status = false;
    },
    uploadInfo() {
      this.$message('逾期已经上报到科长');
    },
    open() {
      this.$message('这是一条消息提示');
    },
    // 资产弹窗
    dialogAsset(row) {
      // this.assetAddFrom = row
      this.dialogAssetAdd.status = true
    },
    dialogAsset1(row) {
      // this.assetAddFrom = row
      this.dialogAssetAdd1.status = true
    },
    agree() {
      this.$message('同意成功');
    },
    reject() {
      this.$message('驳回成功');
    },
    update() {
      this.$message('更新成功');
    },
    urge(data) {
      this.$message('催办成功');
    },
    cancel() {
      this.$message('取消成功');
    },
    handleClose(done) {
      this.$confirm('确认关闭？')
        .then(_ => {
          done();
        })
        .catch(_ => {
        });
    },
    goChange() {
      this.type = 0;
    },
    operation(object) {

    },
    changeType(type) {
      this.type = type
      console.log(this.type)
    },
    sumbit() {
      if (this.planInfo.selectedPlanId) {

      }
      console.log(this.planInfo)
      this.type = 1;
      this.$message('提交成功');
    },
    submitCancel() {
      this.planInfo = {
        reason: "",
        username: "huhuhuhr",
        selectedPlanName: "",
        selectedPlanId: ""
      };
      this.type = 1;
      this.dealState = false;
      this.$message('取消成功');
    }
  },
}
